﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;


namespace GameEngine
{
    public class PointerAvatar
    {

        public Texture2D PointerSprite {get; set;}

        public PointerAvatar(Texture2D sprite)
        {
            PointerSprite = sprite;
        }

        public Vector2 Position
        {
            get { 
                return Camera.WorldToScreen(new Vector2(Mouse.GetState().X, Mouse.GetState().Y)); 
            }
        }

        public virtual void Draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(PointerSprite, Position, Color.White);
        }

    }
}
